/**
 * 
 * @param {*} xmlStr 
 * @returns xml.documentElement.childNodes[1].childNodes[0]
 */
function XMLResolve(xmlStr) {
    var parseXML = "";
    if(typeof DOMParser == "function") {
    parseXML = function(xmlStr) {
        return (new DOMParser()).parseFromString(xmlStr, "text/xml");
    }
    } else if(typeof window.ActiveXObject != 'undefined' && new Window.ActiveXObject('Microsoft.XMLDOM')) {
        parseXML = function(xmlStr) {
            var xmlDOC = new Window.ActiveXObject("Microsoft.XMLDOM");
            xmlDOC.async = 'false';
            xmlDOC.loadXML(xmlStr);
            return xmlDOC;
        };
    } else {
        throw new Error("No XML parser found");
    }
    return parseXML(xmlStr);
}

export default XMLResolve;